<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="ScactbindeviEditDlg" widgetVar="ScactbindeviEditDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.EditScactbindeviTitle}">

            <h:form id="ScactbindeviEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{scactbindeviController.selected != null}">

                        <h:outputLabel value="#{myBundle.EditScactbindeviLabel_scactbindeviid}" for="scactbindeviid" />
                        <h:outputText id="scactbindeviid" value="#{scactbindeviController.selected.scactbindeviid}" />

                        <p:outputLabel value="#{myBundle.EditScactbindeviLabel_prioridad}" for="prioridad" />
                        <p:inputText id="prioridad" value="#{scactbindeviController.selected.prioridad}" title="#{myBundle.EditScactbindeviTitle_prioridad}" required="true" requiredMessage="#{myBundle.EditScactbindeviRequiredMessage_prioridad}"/>

                        <p:outputLabel value="#{myBundle.EditScactbindeviLabel_referencia}" for="referencia" />
                        <p:inputText id="referencia" value="#{scactbindeviController.selected.referencia}" title="#{myBundle.EditScactbindeviTitle_referencia}" required="true" requiredMessage="#{myBundle.EditScactbindeviRequiredMessage_referencia}"/>

                        <p:outputLabel value="#{myBundle.EditScactbindeviLabel_scactbtipeviid}" for="scactbtipeviid" />
                        <p:selectOneMenu id="scactbtipeviid" value="#{scactbindeviController.selected.scactbtipeviid}" required="true" requiredMessage="#{myBundle.EditScactbindeviRequiredMessage_scactbtipeviid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scactbtipeviController.items}"
                                           var="scactbtipeviidItem"
                                           itemValue="#{scactbtipeviidItem}"
                                           itemLabel="#{scactbtipeviidItem.scactbtipeviid.toString()}"
                                           />
                            <f:converter binding="#{scactbtipeviConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.EditScactbindeviLabel_scactbindicaid}" for="scactbindicaid" />
                        <p:selectOneMenu id="scactbindicaid" value="#{scactbindeviController.selected.scactbindicaid}" required="true" requiredMessage="#{myBundle.EditScactbindeviRequiredMessage_scactbindicaid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scactbindicaController.items}"
                                           var="scactbindicaidItem"
                                           itemValue="#{scactbindicaidItem}"
                                           itemLabel="#{scactbindicaidItem.descriptor.toString()}"
                                           />
                            <f:converter binding="#{scactbindicaConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.EditScactbindeviLabel_scactbevidenid}" for="scactbevidenid" />
                        <p:selectOneMenu id="scactbevidenid" value="#{scactbindeviController.selected.scactbevidenid}" required="true" requiredMessage="#{myBundle.EditScactbindeviRequiredMessage_scactbevidenid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scactbevidenController.items}"
                                           var="scactbevidenidItem"
                                           itemValue="#{scactbevidenidItem}"
                                           itemLabel="#{scactbevidenidItem.descripcion.toString()}"
                                           />
                            <f:converter binding="#{scactbevidenConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{scactbindeviController.save}" value="#{myBundle.Save}" update="display,:ScactbindeviListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,ScactbindeviEditDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="ScactbindeviEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
